
public class HourlyWorker extends Employee{
	
	private String HourlyRate;
	
	public HourlyWorker(String firstName, String lastName, String age,
			String address, String city, String state, String zip) {
		
		super(firstName, lastName, age, address, city, state, zip);
		
	}

	public String getHourlyRate() {
		return HourlyRate;
	}

	public void setHourlyRate(String hourlyRate) {
		HourlyRate = hourlyRate;
	}

	@Override
	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		
		sb.append(getFirstName());
		sb.append(" ");
		sb.append(getLastName());
		sb.append(" ");
		sb.append(getAge());
		sb.append(" ");
		sb.append(getAddress());
		sb.append(" ");
		sb.append(getCity());
		sb.append(" ");
		sb.append(getState());
		sb.append(" ");
		sb.append(getZip());
		sb.append(" ");
		sb.append(getHourlyRate());
		
		return sb.toString();
	}
	
}
